package org.xwb.springcloud.config;


import org.springframework.amqp.core.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.xwb.springcloud.constant.MqConstant;

/**
 * 创建RabbitMQ的配置类
 * @author 10564
 */
@Configuration
public class RabbitmqWorkQueueConfig {
    /**
     * 工作队列
     */
    @Bean
    public Queue workQueue() {
        return new Queue(MqConstant.WORK_QUEUE_NAME);
    }
}